package com.hyperf.core.bean.model;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author lizhaoyang
 */
@Getter
@Setter
@NoArgsConstructor
public abstract class AbstractPageModel implements Serializable {

    private static final long serialVersionUID = 5933855740600894449L;

    /**
     * 页码
     */
    private Integer page;
    /**
     * 分页数
     */
    private Integer pageSize;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
